/*
 * Realise par Thomas Moreau
 */
$(function($) {
	onMessage = function(m) {
		location.reload();
	};
	
	var channel = new goog.appengine.Channel(token);
	var handler = {
		'onopen' : function() {
		},
		'onmessage' : onMessage,
		'onerror' : function() {
		},
		'onclose' : function() {
		}
	};
	var socket = channel.open(handler);
	socket.onmessage = onMessage;
})(jQuery);